<template>
  <div class="footer">
    <div class="line-ft" v-if="isTop"></div>
    <div class="container">
      <div class="top-money" v-if="isTop">
        <ul>
          <li v-for="item in moneyList" :key="item.id" style="text-align: center">
            <span style="font-size:36px">{{item.num}}</span>
            <span style="font-size:14px">{{item.name1}}</span>
            <br/> 
            <span style="font-size:14px">{{item.name2}}</span>
          </li>
        </ul>
      </div>
      <div class="top-cnt">
        <div class="left-logo">
          <div class="logo">
            <p>
              <img
                src="../assets/img/ytLogo.png"
                style="width: 160px; height: 58px"
                alt=""
              />
            </p>
            <p>
              <span class="line"></span>
              <span class="text">私域流量智能营销平台</span>
              <span class="line"></span>
            </p>
          </div>

          <div class="ads">
            <p>
              <img
                src="../assets/img/address.png"
                style="width: 20px; height: 20px"
                alt=""
              />
            </p>
            <ul>
              <li>上海 <span class="line"></span></li>
              <li>苏州 <span class="line"></span></li>
              <li>长沙 <span class="line"></span></li>
              <li>合肥</li>
            </ul>
          </div>

          <div class="phone">
            <p style="margin-right: 11px">
              <img
                src="../assets/img/tel.png"
                style="width: 20px; height: 20px"
                alt=""
              />
            </p>
            <p>400-98473424</p>
          </div>
        </div>
        <div class="center-cnt">
          <div
            class="details"
            v-for="item in list"
            :key="item.id"
            style="margin-right: 84px"
          >
            <h1>{{ item.title }}</h1>
            <ul>
              <li v-for="itemm in item.children" :key="itemm.id">
                {{ itemm.name }}
              </li>
            </ul>
          </div>
        </div>
        <div class="right-cnt">
          <div class="emil">
            <h1>邮箱</h1>
            <p>service@etoolscrm.com</p>
          </div>
          <div class="ewm">
            <img
              src="../assets/img/ewm.png"
              style="width: 178px; height: 178px"
              alt=""
            />
          </div>

          <div class="contact-our">联系我们</div>
        </div>
      </div>
    </div>
    <div class="bottom-cnt">
      Copyright ©2020 - 2021 ETOOL Inc.ALL Rrghts Reserved.ETOOL 亿拓 版权所有
      沪公网安备11010502032326号
    </div>
  </div>
</template>

<script>
export default {
  name: "Footer",
  props: {
    isTop: {
      type: Boolean,
      default: false
    }
  },

  data() {
    return {
      moneyList: [
        { id: 1, num: '15', name1: '家', name2: '直属分公司' },
        { id: 2, num: '7x24', name1: '小时', name2: '售后支持' },
        { id: 3, num: '0', name1: '元', name2: '真正免费使用' },
        { id: 4, num: '2000', name1: '+员工', name2: '竭诚为您服务' },
      ],
      list: [
        {
          id: 1,
          children: [
            { id: 1, name: "亿拓SCRM" },
            { id: 2, name: "亿拓微客服" },
          ],
          title: "产品",
        },
        {
          id: 2,
          children: [
            { id: 1, name: "定制化&私有化" },
            { id: 2, name: "金融行业" },
            { id: 3, name: "零售行业" },
            { id: 4, name: "地产行业" },
            { id: 5, name: "汽车行业业" },
          ],
          title: "解决方案",
        },
        {
          id: 3,
          children: [
            { id: 1, name: "全渠道获客" },
            { id: 2, name: "代运营服务" },
            { id: 3, name: "智能硬件" },
          ],
          title: "服务",
        },
        {
          id: 4,
          children: [
            { id: 1, name: "走进亿拓" },
            { id: 2, name: "加入我们" },
          ],
          title: "关于我们",
        },
      ],
    };
  },
};
</script>

<style lang="scss" scoped>
li {
  list-style-type: none;
}
.footer {
  width: 100%;
  background: #000;
  // height: 481px;
  padding-top: 60px;
  box-sizing: border-box;
  position: relative;
  .line-ft {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    position: absolute;
    top: 200px;
  }
  .bottom-cnt {
    background: #444;
    height: 40px;
    font-size: 16px;
    font-family: PingFang SC;
    line-height: 40px;
    color: #fff;
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
  }
  .container {
    width: 1250px;
    margin: 0 auto;
    color: #fff;
    background: #000;
    .top-money {
      height: 205px;
      background: #000;
      ul {
        display: flex;
        justify-content: space-around;
      }
    }
    .top-cnt {
      display: flex;
      justify-content: space-between;
    }
    .left-logo {
      .logo {
        .text {
          font-size: 12px;
          font-family: PingFang SC;
          opacity: 0.7;
        }
        .line {
          width: 14px;
          height: 2px;
          background: rgba(255, 255, 255, 0.7);
          display: inline-block;
          position: relative;
          top: -4px;
        }
      }
      .ads {
        display: flex;
        margin-top: 59px;
        img {
          position: relative;
          top: 1px;
          margin-right: 11px;
        }
        ul {
          display: flex;
          .line {
            display: inline-block;
            height: 15px;
            width: 2px;
            background: rgba(255, 255, 255, 0.7);
            position: relative;
            top: 3px;
            margin: 0 7px 0 5px;
          }
        }
      }
      .phone {
        margin-top: 61px;
        display: flex;
      }
    }

    .center-cnt {
      display: flex;
      font-family: PingFang SC;
      h1 {
        font-size: 20px;
        font-weight: 600;
        color: #ffffff;
        margin-bottom: 39px;
      }
      li {
        font-size: 16px;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.7);
        line-height: 55px;
      }
    }
    .right-cnt {
      .emil {
        font-family: PingFang SC;
        color: #ffffff;
        margin-bottom: 29px;
        h1 {
          font-size: 20px;
          line-height: 30px;
        }
        p {
          font-size: 16px;
          line-height: 30px;
        }
      }
      .contact-our {
        margin-top: 13px;
        font-size: 16px;
        font-family: PingFang SC;
        text-align: center;
      }
    }
  }
}
</style>